﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Forms;
using System.Collections.Specialized;

namespace Titler.Controls
{
    /// <summary>
    /// Interaction logic for UserControl5.xaml
    /// </summary>
    public partial class ChemicalCtrl : System.Windows.Controls.UserControl
    {
        public ChemicalCtrl()
        {
            InitializeComponent();
        }


        public string TitleReturn(bool Dwg, int Level)
        {
            return CVConfig.Text + " " + CVSize.Text + " CHECK VALVE" +
                (Dwg == false && Level == 3 && CVPressure.Text != "" ? ", " + CVPressure.Text + " PSI CRACKING PRESSURE" : "") +
                (Dwg == false && Level == 3 && CVBurstDisk.Text != "N/A" && CVBurstDisk.Text != "" ? ", " + CVBurstDisk.Text + " PSI BURST DISK" : "");
        }
    }
}
